package com.sp.po;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * Menu entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Menu  implements java.io.Serializable {
    // Fields    

     private Integer menuId;
     private String menuName;
     private String menuUrl;
     private Integer menuState;
     private Integer superId;
     private Integer sortId;
     private Set<Role> role_menu = new HashSet<Role>(0);
    // Constructors

    /** default constructor */
    public Menu() {
    }

	/** minimal constructor */
    public Menu(String menuName, Integer menuState, Integer superId) {
        this.menuName = menuName;
        this.menuState = menuState;
        this.superId = superId;
    }
    
    /** full constructor */
	public Menu(Integer menuId, String menuName, String menuUrl,
			Integer menuState, Integer superId, Integer sortId,
			Set<Role> roleMenu) {
		super();
		this.menuId = menuId;
		this.menuName = menuName;
		this.menuUrl = menuUrl;
		this.menuState = menuState;
		this.superId = superId;
		this.sortId = sortId;
		role_menu = roleMenu;
	}
   
    // Property accessors

    public Integer getMenuId() {
        return this.menuId;
    }
    
    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return this.menuName;
    }
    
    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return this.menuUrl;
    }
    
    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public Integer getMenuState() {
        return this.menuState;
    }
    
    public void setMenuState(Integer menuState) {
        this.menuState = menuState;
    }

    public Integer getSuperId() {
        return this.superId;
    }
    
    public void setSuperId(Integer superId) {
        this.superId = superId;
    }

    public Integer getSortId() {
        return this.sortId;
    }
    
    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

	public Set<Role> getRole_menu() {
		return role_menu;
	}

	public void setRole_menu(Set<Role> roleMenu) {
		role_menu = roleMenu;
	}
}